package com.dhecp.project.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 邮件系统地址簿实体
 * @author DH-Xxj
 * @version 2020年11月23日
 */
public class MailAddressBook  implements Serializable{
    private static final long serialVersionUID = 1L;

	private String guid;	//行Guid
	private String pGuid;	//上级行Guid
	private String userId;	//所属员工（当前登录用户编号或public）
	private String title;	//节点名称
	private String vtype;	//节点类型
	private String orgid;	//节点编码
	private Boolean allowAdd;	//是否允许新增（子节点）
	private Boolean allowEdit;	//是否允许修改
	private Boolean allowDelete;//是否允许删除
	private Integer bookOrder;	//排序
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;	//创建时间
    
	public String getGuid() {
		return guid;
	}
	public void setGuid(String guid) {
		this.guid = guid;
	}
	public String getpGuid() {
		return pGuid;
	}
	public void setpGuid(String pGuid) {
		this.pGuid = pGuid;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getVtype() {
		return vtype;
	}
	public void setVtype(String vtype) {
		this.vtype = vtype;
	}
	public String getOrgid() {
		return orgid;
	}
	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}
	public Boolean getAllowAdd() {
		if (allowAdd == null){
			return false;
		}
		return allowAdd;
	}
	public void setAllowAdd(Boolean allowAdd) {
		this.allowAdd = allowAdd;
	}
	public Boolean getAllowEdit() {
		if (allowEdit == null){
			return false;
		}
		return allowEdit;
	}
	public void setAllowEdit(Boolean allowEdit) {
		this.allowEdit = allowEdit;
	}
	public Boolean getAllowDelete() {
		if (allowDelete == null){
			return false;
		}
		return allowDelete;
	}
	public void setAllowDelete(Boolean allowDelete) {
		this.allowDelete = allowDelete;
	}
	public Integer getBookOrder() {
		if (bookOrder == null){
			return 10000;
		}
		return bookOrder;
	}
	public void setBookOrder(Integer bookOrder) {
		this.bookOrder = bookOrder;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
    
}
